package com.smedi.ismedi.authoritymanagement.api.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-3 11:29
 */
@Data
public class RoleBasicResponse implements Serializable {
    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "是否管理员")
    private boolean admin;

    @ApiModelProperty(value = "创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private LocalDate createdDate;

    @ApiModelProperty(value = "更新日期")
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private LocalDate latestUpdatedDate;

    @ApiModelProperty(value = "创建人")
    private String createdLastName;

    @ApiModelProperty(value = "更新人")
    private String updatedLastName;

    @ApiModelProperty(value = "角色分类")
    private String roleType;

    @ApiModelProperty(value = "拥有该角色的人员id")
    private List<Long> roleOwnerPersonIds = new ArrayList<>();

    @ApiModelProperty(value = "角色分配id")
    private Long roleMemberId;
}
